package com.jkl.webserver.Web.DAO.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)//不要将空值解析为json
@TableName("account")
public class Account {
    @TableId(type = IdType.NONE)
    private String email;

    private String password;

    private String userName;

    private String sign;

    private String createTime;

    private String alertTime;

    public Account(String email, String password,String userName) {
        this.email = email;
        this.password = password;
        this.userName=userName;
    }
}

